﻿ @*
 * ---------------------------------------------------
 * 作者: MTQ 
 * 日期： 2021/5/6 12:46:44 
 * ---------------------------------------------------
 *@
    
   @{                                          
       Layout = "~/Views/Shared/_Layout_lay_admin.cshtml";                                      
    }                                         
                                             
    <style>                                         
        body {                                     
            background-color: #ffffff;                                 
         }                                    
    </style>                                        
                                             
    <div class="layui-form layuimini-form">                                         
      <div class="layui-form-item  hidden ">                                       
             <label class="layui-form-label"  formeld_key="U_ID" txt='U_ID'></label>                                  
             <div class="layui-input-block">                                
                <input type="text" name="U_ID" placeholder=""  value="@Model.U_ID" autocomplete="off" class="layui-input">                             
               </div>                               
       </div>                                       
      <div class="layui-form-item ">                                       
             <label class="layui-form-label"  formeld_key="User_UserName" txt='User_UserName'></label>                                  
             <div class="layui-input-block">                                
                <input type="text" name="User_UserName" placeholder=""  value="@Model.User_UserName" autocomplete="off" class="layui-input">                             
               </div>                               
       </div>                                       
      <div class="layui-form-item ">                                       
             <label class="layui-form-label"  formeld_key="User_Password" txt='User_Password'></label>                                  
             <div class="layui-input-block">                                
                <input type="text" name="User_Password" placeholder=""  value="@Model.User_Password" autocomplete="off" class="layui-input">                             
               </div>                               
       </div>                                       
      <div class="layui-form-item ">                                       
             <label class="layui-form-label"  formeld_key="User_Status" txt='User_Status'></label>                                  
             <div class="layui-input-block">                                
                <input type="text" name="User_Status" placeholder=""  value="@Model.User_Status" autocomplete="off" class="layui-input">                             
               </div>                               
       </div>                                       
      <div class="layui-form-item ">                                       
             <label class="layui-form-label"  formeld_key="User_RealName" txt='User_RealName'></label>                                  
             <div class="layui-input-block">                                
                <input type="text" name="User_RealName" placeholder=""  value="@Model.User_RealName" autocomplete="off" class="layui-input">                             
               </div>                               
       </div>                                       
      <div class="layui-form-item ">                                       
             <label class="layui-form-label"  formeld_key="Group_HostInfo_ID" txt='Group_HostInfo_ID'></label>                                  
             <div class="layui-input-block">                                
                <input type="text" name="Group_HostInfo_ID" placeholder=""  value="@Model.Group_HostInfo_ID" autocomplete="off" class="layui-input">                             
               </div>                               
       </div>                                       
      <div class="layui-form-item ">                                       
             <label class="layui-form-label"  formeld_key="H_ID" txt='H_ID'></label>                                  
             <div class="layui-input-block">                                
                <input type="text" name="H_ID" placeholder=""  value="@Model.H_ID" autocomplete="off" class="layui-input">                             
               </div>                               
       </div>                                       
      <div class="layui-form-item ">                                       
             <label class="layui-form-label"  formeld_key="H_Name_CN" txt='H_Name_CN'></label>                                  
             <div class="layui-input-block">                                
                <input type="text" name="H_Name_CN" placeholder=""  value="@Model.H_Name_CN" autocomplete="off" class="layui-input">                             
               </div>                               
       </div>                                       
      <div class="layui-form-item ">                                       
             <label class="layui-form-label"  formeld_key="H_Name_EN" txt='H_Name_EN'></label>                                  
             <div class="layui-input-block">                                
                <input type="text" name="H_Name_EN" placeholder=""  value="@Model.H_Name_EN" autocomplete="off" class="layui-input">                             
               </div>                               
       </div>                                       
      <div class="layui-form-item ">                                       
             <label class="layui-form-label"  formeld_key="H_IISURL_PC" txt='H_IISURL_PC'></label>                                  
             <div class="layui-input-block">                                
                <input type="text" name="H_IISURL_PC" placeholder=""  value="@Model.H_IISURL_PC" autocomplete="off" class="layui-input">                             
               </div>                               
       </div>                                       
      <div class="layui-form-item ">                                       
             <label class="layui-form-label"  formeld_key="H_IISURL_API" txt='H_IISURL_API'></label>                                  
             <div class="layui-input-block">                                
                <input type="text" name="H_IISURL_API" placeholder=""  value="@Model.H_IISURL_API" autocomplete="off" class="layui-input">                             
               </div>                               
       </div>                                       
      <div class="layui-form-item ">                                       
             <label class="layui-form-label"  formeld_key="H_IISURL_M" txt='H_IISURL_M'></label>                                  
             <div class="layui-input-block">                                
                <input type="text" name="H_IISURL_M" placeholder=""  value="@Model.H_IISURL_M" autocomplete="off" class="layui-input">                             
               </div>                               
       </div>                                       
      <div class="layui-form-item ">                                       
             <label class="layui-form-label"  formeld_key="H_ServerIP" txt='H_ServerIP'></label>                                  
             <div class="layui-input-block">                                
                <input type="text" name="H_ServerIP" placeholder=""  value="@Model.H_ServerIP" autocomplete="off" class="layui-input">                             
               </div>                               
       </div>                                       
      <div class="layui-form-item ">                                       
             <label class="layui-form-label"  formeld_key="H_ServerPort" txt='H_ServerPort'></label>                                  
             <div class="layui-input-block">                                
                <input type="text" name="H_ServerPort" placeholder=""  value="@Model.H_ServerPort" autocomplete="off" class="layui-input">                             
               </div>                               
       </div>                                       
      <div class="layui-form-item ">                                       
             <label class="layui-form-label"  formeld_key="H_DatabaseUser" txt='H_DatabaseUser'></label>                                  
             <div class="layui-input-block">                                
                <input type="text" name="H_DatabaseUser" placeholder=""  value="@Model.H_DatabaseUser" autocomplete="off" class="layui-input">                             
               </div>                               
       </div>                                       
      <div class="layui-form-item ">                                       
             <label class="layui-form-label"  formeld_key="H_DatabasePassword" txt='H_DatabasePassword'></label>                                  
             <div class="layui-input-block">                                
                <input type="text" name="H_DatabasePassword" placeholder=""  value="@Model.H_DatabasePassword" autocomplete="off" class="layui-input">                             
               </div>                               
       </div>                                       
      <div class="layui-form-item ">                                       
             <label class="layui-form-label"  formeld_key="H_DatabaseName" txt='H_DatabaseName'></label>                                  
             <div class="layui-input-block">                                
                <input type="text" name="H_DatabaseName" placeholder=""  value="@Model.H_DatabaseName" autocomplete="off" class="layui-input">                             
               </div>                               
       </div>                                       
      <div class="layui-form-item ">                                       
             <label class="layui-form-label"  formeld_key="H_Remark" txt='H_Remark'></label>                                  
             <div class="layui-input-block">                                
                <input type="text" name="H_Remark" placeholder=""  value="@Model.H_Remark" autocomplete="off" class="layui-input">                             
               </div>                               
       </div>                                       
      <div class="layui-form-item">                                        
            <div class="layui-input-block">                                 
                  <button class="layui-btn layui-btn-normal" lay-submit lay-filter="saveBtn">确认保存</button>                            
              </div>                                
       </div>                                       
    </div>                                         
                                             
      <script>                                                     
          layui.use(['form'], function () {                        
              var form = layui.form,                               
                  layer = layui.layer,                             
                  $ = layui.$;                                     
                                                                   
              //监听提交                                           
              form.on('submit(saveBtn)', function (data) {         
                                                                   
                  $.ajax({                                         
                      url: '/View_GroupUserHost/Create',                       
                      type: 'post',                                
                      dataType: 'text',                            
                      data: data.field,                            
                      success: function (resp) {                   
                          var json = eval('(' + resp + ')');       
                          var index = layer.alert(json.Message, function () {      
                              // 关闭弹出层      
                              layer.close(index);      
                              parent.reloadTable();      
                              var iframeIndex = parent.layer.getFrameIndex(window.name);      
                              parent.layer.close(iframeIndex);       
                          });                                        
                      },                                             
                      error: function (resp) {                       
                          layer.alert("对不起出错了");             
                      }                                              
                  });                                                
                                                                     
                                                                     
                  return false;                                      
              });                                                    
          showFormelDtxt(view_groupuserhost_entity);                             
           });                                                       
      </script>                                                      
                                             
                                             
                                             
                                             
                                             
                                             
                                             
                                             
                                             
                                             
                                             
                                             
                                             
                                             
                                             
                                             
                                             
                                             

